import React from 'react';
import './index.less';
import ReactLoading from 'react-loading';

interface props {
  showLoading?: boolean | null;
}
export default function ShowLoading({showLoading}:props) {
  if(showLoading === undefined){
    showLoading = true;
  }
  return (
    <div>
      {showLoading ? <div className='loading-info'> <ReactLoading color='#666' height={50} width={50} /> </div>: <div className='loading-info'>没有数据了~</div>}
    </div>
  )
}

